<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE HTML>
<ui:composition 
	template="/dinamic/template/template.xhtml" 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="conteudo">              
	    <h:form id="formRegistro">
    	    <p:panel header="#{mensagem['projeto.incluir']}" >
    	    
	                <h:panelGrid id="novoProjeto" columns="2" cellpadding="5">
		                <h:outputLabel  styleClass="name" value="Nome Projeto" />
	                    <p:inputText size="30" maxlength="15" value="#{projetoManagedBean.projeto.nomeProjeto}"  required="true" requiredMessage="Informe um nome !"/>
	                </h:panelGrid>
	                
	                <h:panelGrid id="periodo" columns="5" cellpadding="5">
	                   	<h:outputLabel styleClass="name2" value="#{mensagem['tempo.previsto.projeto']}" />
	                
	                   	<p:selectOneMenu value="#{projetoManagedBean.mesProjeto}">
	                   		<f:selectItem itemValue="0" itemLabel="0"/>
	                   		<f:selectItem itemValue="1" itemLabel="1"/>
	                   		<f:selectItem itemValue="2" itemLabel="2"/>
	                   		<f:selectItem itemValue="3" itemLabel="3"/>
	                   		<f:selectItem itemValue="4" itemLabel="4"/>
	                   		<f:selectItem itemValue="5" itemLabel="5"/>
	                   		<f:selectItem itemValue="6" itemLabel="6"/>
	                   		<f:selectItem itemValue="7" itemLabel="7"/>
	                   		<f:selectItem itemValue="8" itemLabel="8"/>
	                   		<f:selectItem itemValue="9" itemLabel="9"/>
	                   		<f:selectItem itemValue="10" itemLabel="10"/>
	                  	 	<f:selectItem itemValue="11" itemLabel="11"/>
	                   	</p:selectOneMenu>
	                   	<h:outputLabel styleClass="name2" value="#{mensagem['mes(es)']}" />
	                   	<p:selectOneMenu value="#{projetoManagedBean.anoProjeto}">
	                  	 	<f:selectItem itemValue="0" itemLabel="0"/>
	                   		<f:selectItem itemValue="1" itemLabel="1"/>
	                   		<f:selectItem itemValue="2" itemLabel="2"/>
	                   	</p:selectOneMenu>
	                   	<h:outputLabel styleClass="name" value="#{mensagem['ano(s)']}" />
	                   	
	                  </h:panelGrid>
	                  
	                  <h:panelGrid id="botoes" columns="2" cellpadding="5">
	                    <p:commandButton value="#{mensagem['incluir']}" action="#{projetoManagedBean.cadastrarProjeto()}" ajax="false" />
	                    <p:commandButton value="#{mensagem['botao.limpar']}" update="novoProjeto" process="@this">  
	                    	<p:resetInput target="novoProjeto" />  
	                  	</p:commandButton>
	                  </h:panelGrid>
        	</p:panel>
		</h:form>                              
	</ui:define>
</ui:composition>